<template>
	<view>
		<view v-if="appType === 'app-tch' || appType === 'mp-tch'">
			<tchactive></tchactive>
		</view>
		<view class="add_icon" @click="handleGoRouter">
			+
		</view>
		
	</view>
</template>

<script>
	import Tchactive from '@/pages/tchactive/tchactive.vue';
	import {
		mapState
	} from 'vuex';
	export default {
		data() {
			return {

			}
		},
		components: {
			Tchactive
		},
		computed: {
			...mapState({
				appType: state => state.app.appType,
			}),
		},
		methods: {
			handleGoRouter() {
				// 教师端
				if(this.appType === 'app-tch'){
					this.$u.route({
						url: '/pages_teach_db/add-vac/add-vac'
					})
				}
				// 学生端
			}
		},
		
	}
</script>

<style lang="scss" scoped>
	.add_icon {
		border: 4rpx solid #000;
		width: 100rpx;
		height: 100rpx;
		text-align: center;
		line-height: 86rpx;
		font-size: 70rpx;
		border-radius: 200rpx;
		position: fixed;
		bottom: 94rpx;
		right: 24rpx;
		z-index: 99999;
	}
</style>